#  Copyright (c) 2007 re.con team (see README and COPYNG)

class Content < Struct.new(:title, :description, :category, :author, :guid, :link, :pubDate)

  def initialize
    t=Time.now
    self.pubDate = XMLRPC::DateTime.new(t.year,t.month,t.day,t.hour,t.min,t.sec)
  end

  def to_hash
    h = Hash.new
    each_pair {|k,v| h[k.to_s] = v unless v.nil?}
    return h
  end

end
